package com.ysl.fairy_could_class.service.impl;

import com.ysl.fairy_could_class.domain.Banner;
import com.ysl.fairy_could_class.mapper.BannerMapper;
import com.ysl.fairy_could_class.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class BannerServiceImpl implements BannerService {
    @Autowired
    BannerMapper mapper;

    @Override
    public Banner selectById(int id) {
        return mapper.selectById(id);
    }

    @Override
    public int SaveBanner(Banner banner) {
        return mapper.SaveBanner(banner);
    }

    @Override
    public int UpdateBanner(Banner banner) {
        return mapper.UpdateBanner(banner);
    }

    @Override
    public int DeleteBanner(int id) {
        return mapper.DeleteBanner(id);
    }


}
